package com.heaven.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heaven.pojo.Item;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface ItemMapper extends BaseMapper<Item> {

    @Select("select * from item where id=#{id}")
    Item getItemById(Integer id);

    @Update("update item set title=#{title} ,sell_point=#{sellPoint} ,price=#{price},num=#{num} where id=#{id}")
    void updateItem(Item item);
}
